var Bullet = cc.Sprite.extend({
    _power : 0,
    _speed : 0,
    _life : true,
    _owner : null,
    _colType : -1,
    _target : null,
    ///////////////////////////////////////////////////////////
    ctor : function(filename,power,speed,type){
        this._super(filename);
        this._power = power;
        this._speed = speed;
        this._colType = type;
        this.setLife(true);
        this._owner = this;
    },
    onEnter:function () {
        this._super();
    },
    onExit : function(){
        this._super();
    },
    ////////////////////////// settings ////////////////////////
    getPower : function(){
        return this._power;
    },
    setPower : function(power){
        this._power=power;
    },
    getSpeed : function(){
        return this._speed;
    },
    setSpeed : function(speed){
        this._speed=speed;
    },
    getLife : function(){
        return this._life;
    },
    setLife : function(life){
        this._life=life;
    },
    getOwner : function(){
        return this._owner;
    },
    setOwner : function(owner){
        this._owner=owner;
    },
    getType : function(){
        return this._colType;
    },
    setType : function(type){
        this._colType=type;
    }
});


